﻿using Newtonsoft.Json;
using ProjectManageSystemApi.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ProjectManageSystemApi.Models
{
    public class RoleDto
    {
		/// <summary>
		/// 主键
		/// </summary>
		[JsonConverter(typeof(LongConverter))]
		public long Id { get; set; }

		/// <summary>
		/// 编码
		/// </summary>
		public string Code { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime? CreateAt { get; set; }

		/// <summary>
		/// 创建人员
		/// </summary>
		public long? CreateBy { get; set; }

		/// <summary>
		/// 描述
		/// </summary>
		public string Description { get; set; }

		/// <summary>
		/// 图标链接或者Base64字符串
		/// </summary>
		public string Icon { get; set; }

		/// <summary>
		/// 角色名称
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// 状态(0:无效,1:有效)
		/// </summary>
		public int? Status { get; set; } = 1;

		/// <summary>
		/// 类型(0:其他、10:系统、20:客户、30:应用)
		/// </summary>
		public string Type { get; set; } = "0";

		/// <summary>
		/// 更新时间
		/// </summary>
		public DateTime? UpdateAt { get; set; }

		/// <summary>
		/// 更新人员
		/// </summary>
		public long? UpdateBy { get; set; }
	}
}
